Optimal. Leaf size=210 \[ \frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {3 b d (c+d x)^2 \text {PolyLog}\left (2,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^2}+\frac {3 b d^2 (c+d x) \text {PolyLog}\left (3,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^3}+\frac {3 b d^3 \text {PolyLog}\left (4,\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{4 \left (a^2-b^2\right ) f^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3812, 2221,
2611, 6744, 2320, 6724} \begin {gather*} \frac {3 b d^2 (c+d x) \text {Li}_3\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 f^3 \left (a^2-b^2\right )}+\frac {3 b d (c+d x)^2 \text {Li}_2\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 f^2 \left (a^2-b^2\right )}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{f \left (a^2-b^2\right )}+\frac {3 b d^3 \text {Li}_4\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{4 f^4 \left (a^2-b^2\right )}+\frac {(c+d x)^4}{4 d (a+b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3812
Rule 6724
Rule 6744
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{a+b \coth (e+f x)} \, dx &=\frac {(c+d x)^4}{4 (a+b) d}-(2 b) \int \frac {e^{-2 (e+f x)} (c+d x)^3}{(a+b)^2+\left (-a^2+b^2\right ) e^{-2 (e+f x)}} \, dx\\ &=\frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {(3 b d) \int (c+d x)^2 \log \left (1+\frac {\left (-a^2+b^2\right ) e^{-2 (e+f x)}}{(a+b)^2}\right ) \, dx}{\left (a^2-b^2\right ) f}\\ &=\frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {3 b d (c+d x)^2 \text {Li}_2\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^2}-\frac {\left (3 b d^2\right ) \int (c+d x) \text {Li}_2\left (-\frac {\left (-a^2+b^2\right ) e^{-2 (e+f x)}}{(a+b)^2}\right ) \, dx}{\left (a^2-b^2\right ) f^2}\\ &=\frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {3 b d (c+d x)^2 \text {Li}_2\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^2}+\frac {3 b d^2 (c+d x) \text {Li}_3\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^3}-\frac {\left (3 b d^3\right ) \int \text {Li}_3\left (-\frac {\left (-a^2+b^2\right ) e^{-2 (e+f x)}}{(a+b)^2}\right ) \, dx}{2 \left (a^2-b^2\right ) f^3}\\ &=\frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {3 b d (c+d x)^2 \text {Li}_2\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^2}+\frac {3 b d^2 (c+d x) \text {Li}_3\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^3}+\frac {\left (3 b d^3\right ) \text {Subst}\left (\int \frac {\text {Li}_3\left (\frac {(a-b) x}{a+b}\right )}{x} \, dx,x,e^{-2 (e+f x)}\right )}{4 \left (a^2-b^2\right ) f^4}\\ &=\frac {(c+d x)^4}{4 (a+b) d}-\frac {b (c+d x)^3 \log \left (1-\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{\left (a^2-b^2\right ) f}+\frac {3 b d (c+d x)^2 \text {Li}_2\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^2}+\frac {3 b d^2 (c+d x) \text {Li}_3\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{2 \left (a^2-b^2\right ) f^3}+\frac {3 b d^3 \text {Li}_4\left (\frac {(a-b) e^{-2 (e+f x)}}{a+b}\right )}{4 \left (a^2-b^2\right ) f^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.29, size = 349, normalized size = 1.66 \begin {gather*} \frac {4 a c^3 f^4 x+4 b c^3 f^4 x+6 a c^2 d f^4 x^2+6 b c^2 d f^4 x^2+4 a c d^2 f^4 x^3+4 b c d^2 f^4 x^3+a d^3 f^4 x^4+b d^3 f^4 x^4-4 b c^3 f^3 \log \left (1+\frac {(a+b) e^{2 (e+f x)}}{-a+b}\right )-12 b c^2 d f^3 x \log \left (1+\frac {(a+b) e^{2 (e+f x)}}{-a+b}\right )-12 b c d^2 f^3 x^2 \log \left (1+\frac {(a+b) e^{2 (e+f x)}}{-a+b}\right )-4 b d^3 f^3 x^3 \log \left (1+\frac {(a+b) e^{2 (e+f x)}}{-a+b}\right )-6 b d f^2 (c+d x)^2 \text {PolyLog}\left (2,\frac {(a+b) e^{2 (e+f x)}}{a-b}\right )+6 b d^2 f (c+d x) \text {PolyLog}\left (3,\frac {(a+b) e^{2 (e+f x)}}{a-b}\right )-3 b d^3 \text {PolyLog}\left (4,\frac {(a+b) e^{2 (e+f x)}}{a-b}\right )}{4 (a-b) (a+b) f^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1157\) vs.
\(2(209)=418\).
time = 5.36, size = 1158, normalized size = 5.51
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1158\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 478 vs.
\(2 (205) = 410\).
time = 0.41, size = 478, normalized size = 2.28 \begin {gather*} -\frac {3 \, {\left (2 \, f x \log \left (-\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b} + 1\right ) + {\rm Li}_2\left (\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b}\right )\right )} b c^{2} d}{2 \, {\left (a^{2} f^{2} - b^{2} f^{2}\right )}} - \frac {3 \, {\left (2 \, f^{2} x^{2} \log \left (-\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b} + 1\right ) + 2 \, f x {\rm Li}_2\left (\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b}\right ) - {\rm Li}_{3}(\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b})\right )} b c d^{2}}{2 \, {\left (a^{2} f^{3} - b^{2} f^{3}\right )}} - \frac {{\left (4 \, f^{3} x^{3} \log \left (-\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b} + 1\right ) + 6 \, f^{2} x^{2} {\rm Li}_2\left (\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b}\right ) - 6 \, f x {\rm Li}_{3}(\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b}) + 3 \, {\rm Li}_{4}(\frac {{\left (a + b\right )} e^{\left (2 \, f x + 2 \, e\right )}}{a - b})\right )} b d^{3}}{3 \, {\left (a^{2} f^{4} - b^{2} f^{4}\right )}} - c^{3} {\left (\frac {b \log \left (-{\left (a - b\right )} e^{\left (-2 \, f x - 2 \, e\right )} + a + b\right )}{{\left (a^{2} - b^{2}\right )} f} - \frac {f x + e}{{\left (a + b\right )} f}\right )} + \frac {b d^{3} f^{4} x^{4} + 4 \, b c d^{2} f^{4} x^{3} + 6 \, b c^{2} d f^{4} x^{2}}{2 \, {\left (a^{2} f^{4} - b^{2} f^{4}\right )}} + \frac {d^{3} x^{4} + 4 \, c d^{2} x^{3} + 6 \, c^{2} d x^{2}}{4 \, {\left (a + b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1060 vs.
\(2 (205) = 410\).
time = 0.41, size = 1060, normalized size = 5.05 \begin {gather*} \frac {{\left (a + b\right )} d^{3} f^{4} x^{4} + 4 \, {\left (a + b\right )} c d^{2} f^{4} x^{3} + 6 \, {\left (a + b\right )} c^{2} d f^{4} x^{2} + 4 \, {\left (a + b\right )} c^{3} f^{4} x - 24 \, b d^{3} {\rm polylog}\left (4, \sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right ) - 24 \, b d^{3} {\rm polylog}\left (4, -\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right ) - 12 \, {\left (b d^{3} f^{2} x^{2} + 2 \, b c d^{2} f^{2} x + b c^{2} d f^{2}\right )} {\rm Li}_2\left (\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right ) - 12 \, {\left (b d^{3} f^{2} x^{2} + 2 \, b c d^{2} f^{2} x + b c^{2} d f^{2}\right )} {\rm Li}_2\left (-\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right ) - 4 \, {\left (b c^{3} f^{3} - 3 \, b c^{2} d f^{2} \cosh \left (1\right ) + 3 \, b c d^{2} f \cosh \left (1\right )^{2} - b d^{3} \cosh \left (1\right )^{3} - b d^{3} \sinh \left (1\right )^{3} + 3 \, {\left (b c d^{2} f - b d^{3} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} - 3 \, {\left (b c^{2} d f^{2} - 2 \, b c d^{2} f \cosh \left (1\right ) + b d^{3} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (2 \, {\left (a + b\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, {\left (a + b\right )} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, {\left (a - b\right )} \sqrt {\frac {a + b}{a - b}}\right ) - 4 \, {\left (b c^{3} f^{3} - 3 \, b c^{2} d f^{2} \cosh \left (1\right ) + 3 \, b c d^{2} f \cosh \left (1\right )^{2} - b d^{3} \cosh \left (1\right )^{3} - b d^{3} \sinh \left (1\right )^{3} + 3 \, {\left (b c d^{2} f - b d^{3} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} - 3 \, {\left (b c^{2} d f^{2} - 2 \, b c d^{2} f \cosh \left (1\right ) + b d^{3} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (2 \, {\left (a + b\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, {\left (a + b\right )} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) - 2 \, {\left (a - b\right )} \sqrt {\frac {a + b}{a - b}}\right ) - 4 \, {\left (b d^{3} f^{3} x^{3} + 3 \, b c d^{2} f^{3} x^{2} + 3 \, b c^{2} d f^{3} x + 3 \, b c^{2} d f^{2} \cosh \left (1\right ) - 3 \, b c d^{2} f \cosh \left (1\right )^{2} + b d^{3} \cosh \left (1\right )^{3} + b d^{3} \sinh \left (1\right )^{3} - 3 \, {\left (b c d^{2} f - b d^{3} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + 3 \, {\left (b c^{2} d f^{2} - 2 \, b c d^{2} f \cosh \left (1\right ) + b d^{3} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} + 1\right ) - 4 \, {\left (b d^{3} f^{3} x^{3} + 3 \, b c d^{2} f^{3} x^{2} + 3 \, b c^{2} d f^{3} x + 3 \, b c^{2} d f^{2} \cosh \left (1\right ) - 3 \, b c d^{2} f \cosh \left (1\right )^{2} + b d^{3} \cosh \left (1\right )^{3} + b d^{3} \sinh \left (1\right )^{3} - 3 \, {\left (b c d^{2} f - b d^{3} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + 3 \, {\left (b c^{2} d f^{2} - 2 \, b c d^{2} f \cosh \left (1\right ) + b d^{3} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (-\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} + 1\right ) + 24 \, {\left (b d^{3} f x + b c d^{2} f\right )} {\rm polylog}\left (3, \sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right ) + 24 \, {\left (b d^{3} f x + b c d^{2} f\right )} {\rm polylog}\left (3, -\sqrt {\frac {a + b}{a - b}} {\left (\cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )}\right )}{4 \, {\left (a^{2} - b^{2}\right )} f^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d x\right )^{3}}{a + b \coth {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c+d\,x\right )}^3}{a+b\,\mathrm {coth}\left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________